package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户活动信息表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-04-26
 */
@TableName("wz_user_info")
public class WzUserInfo extends Model<WzUserInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * user_info_id
     */
    @TableId(value = "user_info_id", type = IdType.AUTO)
    private Long userInfoId;
    /**
     * 用户编号
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * 商户电话
     */
    @TableField("merchant_tel")
    private String merchantTel;
    /**
     * 商户地址
     */
    @TableField("merchant_address")
    private String merchantAddress;
    /**
     * 商户邮箱
     */
    @TableField("merchant_email")
    private String merchantEmail;
    /**
     * 商户网站
     */
    @TableField("merchant_website")
    private String merchantWebsite;
    /**
     * 商户位置经度
     */
    @TableField("merchant_longitude")
    private String merchantLongitude;
    /**
     * 商户位置纬度
     */
    @TableField("merchant_latitude")
    private String merchantLatitude;
    /**
     * 类型:1-用户；2-商户;
     */
    private Integer type;
    /**
     * 收货人
     */
    @TableField("receive_address")
    private String receiveAddress;
    /**
     * 收货人
     */
    @TableField("receive_name")
    private String receiveName;
    /**
     * 联系电话
     */
    @TableField("receive_tel")
    private String receiveTel;
    /**
     * 是否默认:1-默认
     */
    @TableField("is_default")
    private Integer isDefault;


    public Long getUserInfoId() {
        return userInfoId;
    }

    public void setUserInfoId(Long userInfoId) {
        this.userInfoId = userInfoId;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public String getMerchantTel() {
        return merchantTel;
    }

    public void setMerchantTel(String merchantTel) {
        this.merchantTel = merchantTel;
    }

    public String getMerchantAddress() {
        return merchantAddress;
    }

    public void setMerchantAddress(String merchantAddress) {
        this.merchantAddress = merchantAddress;
    }

    public String getMerchantEmail() {
        return merchantEmail;
    }

    public void setMerchantEmail(String merchantEmail) {
        this.merchantEmail = merchantEmail;
    }

    public String getMerchantWebsite() {
        return merchantWebsite;
    }

    public void setMerchantWebsite(String merchantWebsite) {
        this.merchantWebsite = merchantWebsite;
    }

    public String getMerchantLongitude() {
        return merchantLongitude;
    }

    public void setMerchantLongitude(String merchantLongitude) {
        this.merchantLongitude = merchantLongitude;
    }

    public String getMerchantLatitude() {
        return merchantLatitude;
    }

    public void setMerchantLatitude(String merchantLatitude) {
        this.merchantLatitude = merchantLatitude;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getReceiveAddress() {
        return receiveAddress;
    }

    public void setReceiveAddress(String receiveAddress) {
        this.receiveAddress = receiveAddress;
    }

    public String getReceiveName() {
        return receiveName;
    }

    public void setReceiveName(String receiveName) {
        this.receiveName = receiveName;
    }

    public String getReceiveTel() {
        return receiveTel;
    }

    public void setReceiveTel(String receiveTel) {
        this.receiveTel = receiveTel;
    }

    public Integer getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    @Override
    protected Serializable pkVal() {
        return this.userInfoId;
    }

    @Override
    public String toString() {
        return "WzUserInfo{" +
        "userInfoId=" + userInfoId +
        ", userCode=" + userCode +
        ", merchantTel=" + merchantTel +
        ", merchantAddress=" + merchantAddress +
        ", merchantEmail=" + merchantEmail +
        ", merchantWebsite=" + merchantWebsite +
        ", merchantLongitude=" + merchantLongitude +
        ", merchantLatitude=" + merchantLatitude +
        ", type=" + type +
        ", receiveAddress=" + receiveAddress +
        ", receiveName=" + receiveName +
        ", receiveTel=" + receiveTel +
        ", isDefault=" + isDefault +
        "}";
    }
}
